package src;
public class MCC {
    public static void main(String[] args){
        int ti=8000;
        double tp=(ti-3000)*0.1+3000*0.03-210;
        System.out.println(tp);

    }
}
